Added a default size of a magic number to testwrapbox.c
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Wed, 15 Sep 2010 16:40:32 +0000 (01:40 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Wed, 15 Sep 2010 16:41:53 +0000 (01:41 +0900)
This was added to the test only for the sake of making it
easier to reproduce a bug with scrolled windows (bug 629778).

Expected behaviour: The vertical scrollbar should dissapear as soon
as the required height for the full allocation width (without any
vertical scrollbar) is small enough to not need a scrollbar.

tests/testwrapbox.c

index 0cef70fd8299361815051b75f26df5e4d45bb0e3..89a6cef4f7b9229082ee3270984b7af3e23316f1 100644 (file)
@@ -442,6 +442,12 @@ create_window (void)
 
   populate_items (GTK_WRAP_BOX (wrapbox));
 
+  /* This line was added only for the convenience of reproducing
+   * a height-for-width inside GtkScrolledWindow bug (bug 629778).
+   *   -Tristan
+   */
+  gtk_window_set_default_size (GTK_WINDOW (window), 390, -1);
+
   return window;
 }